package yu.zhu.todo.pojo;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;

import java.io.Serializable;

/**
 * @Author yuzhu
 * @Date 2020/11/10 22:45
 */
@Data
@TableName("todo")
@RedisHash("todo")
public class TodoDto implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    @Id
    private  String id;
    private  String title;
    private Integer completed;
}
